using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace DataSchema.DataModel.Base
{
    public class DomainBase: INotifyPropertyChanged
    {
        #region INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;
    
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
        #endregion

        #region NAME
        private string _name;
		public string Name
        {
            get{
                return _name;
            }
            set{
                _name = value;
                NotifyPropertyChanged("Name");
            }
        }
        #endregion

        #region Description
        private string _description;

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        #endregion

        #region RATE
        private Rate _rate;
        public Rate Rate
        {
            get{
                return _rate;
            }
            set{
                _rate = value;
                NotifyPropertyChanged("Rate");
            }
        }
        #endregion

        #region SELECTED
        private bool _selected;

        public bool Selected
        {
            get { return _selected; }
            set { 
                _selected = value;
                NotifyPropertyChanged("Selected");
            }
        }
	
        #endregion
    }
}
